--- import Breadcrumbs from '@/components/Breadcrumbs.astro' import PageHead from '@/components/PageHead.astro' import Layout from '@/layouts/Layout.astro' import { getAllTypes, getEventsByType } from '@/lib/data-utils' import { capitalizeFirstLetter, iconMappings } from '@/lib/utils' import EventCard from '../../components/EventCard.astro' export async function getStaticPaths() { const typeMap = await getAllTypes() const uniqueTags = Array.from(typeMap.keys()) return Promise.all( uniqueTags.map(async (type) => { const events = await getEventsByType(type) return { params: { id: type }, props: { type, events, }, } }), ) } const { type, events } = Astro.props ---
    { events.map((event) => (
  • )) }